package com.thor.palmmall.rest.hdmall.ipapk.impl;
import org.springframework.beans.factory.annotation.Autowired;

import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.util.Assert;
import com.thor.palmmall.dao.ipapk.MIpapkDao;
import com.thor.palmmall.rest.hdmall.ipapk.MIpapk;
import com.thor.palmmall.rest.hdmall.ipapk.MIpapkService;
import com.thor.palmmall.rest.hdmall.ipapk.MIpapkType;

public class MIpapkServiceImpl implements MIpapkService {

	@Override
	public MIpapk getIpapkInfo(MIpapkType type) throws ThorServiceException {
		Assert.assertArgumentNotNull(type, "type");
		return ipapkDao.getByType(type);
	}

	@Autowired
	private MIpapkDao ipapkDao;
}
